package com.hushow.plugin.brick.service.impl;

import com.hushow.plugin.brick.service.PaymentPlugin;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class WechatPayPlugin implements PaymentPlugin {

    @Override
    public String pay(Map<String, Object> orderInfo) {
        // 实现微信支付逻辑
        return "WechatPay_ok";
    }

    @Override
    public String getName() {
        return "wechatpay";
    }

    @Override
    public boolean supports(String delimiter) {
        return "wechatpay".equals(delimiter);
    }
}
